Skip to content

[python] Fall back Http.File to bytes to fix nightly build#9604

Draft
msyyc wants to merge 8 commits intomainfrom
python-nightly-fix
Draft

[python] Fall back Http.File to bytes to fix nightly build#9604
msyyc wants to merge 8 commits intomainfrom
python-nightly-fix

Conversation

@msyyc
Copy link
Contributor

@msyyc msyyc commented Feb 6, 2026

PR summary:

Before complete design for Http.File, this PR fall back to bytes type to avoid SDK generation failure. It means that the following tsp definition generate same Python SDK API

op A(@body body: Http.File<'XXX'>): Http.File<'XXX'>;

op B(@body body: bytes, @header contentType: 'XXX'): {@body body: bytes; @header contentType: 'XXX'} ;

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Feb 6, 2026
@msyyc msyyc changed the title fix http.file case [python] Fall back Http.File to bytes to fix nightly build Feb 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - fix ✏️

Fall back "Http.File" to "bytes" to avoid generation failure

@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 6, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 6, 2026

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9604
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9604

commit: 51eeeb3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants